import Mock from "mockjs";

//标签列表
export const createTagList = () => {
  return Mock.mock({
    code: 0,
    message: "ok",
    data: {
      tagList: {
        "customTagList|8-20": [
          {
            id: "@guid",
            name: "@ctitle(2, 5)",
            child: [],
          },
        ],
        corpTagList: [
          {
            id: "1",
            name: "重要",
            "child|10-15": [
              {
                id: "@guid",
                name: "@ctitle(2, 5)",
                child: [],
              },
            ],
          },
          {
            id: "2",
            name: "一般",
            "child|10-15": [
              {
                id: "@guid",
                name: "@ctitle(2, 5)",
                child: [],
              },
            ],
          },
          {
            id: "3",
            name: "随缘",
            "child|10-15": [
              {
                id: "@guid",
                name: "@ctitle(2, 5)",
                child: [],
              },
            ],
          },
        ],
      },
    },
  });
};

export function createCustomerList() {
  return Mock.mock({
    code: 0,
    message: "ok",
    data: {
      "list|5-30": [
        {
          customerUserId: "@guid",
          nickname: "@cname(3, 25)",
          headImgUrl: `@image`,
        },
      ],
    },
  });
}
